<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>${table.comment}</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" href="/static/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="/static/erp/css/custom.css" media="all">
</head>
<body>
	<form class="layui-form layui-fluid" style="margin-top: 15px;">
		<input id="id" name="id" type="hidden" value="${r"${(entity.id)!}"}"/>
		<input id="version" name="version" type="hidden" value="${r"${(entity.version)!}"}"/>

	<#list fields as field>
		<#if field.fieldDesc??>
		<div class="row">
			<div class="form-group  col-sm-12 col-xs-12">
				<label class="col-sm-4 col-xs-3 control-label" style="text-align:  right;">${field.descComment}:</label>
				<div class="col-sm-8 col-xs-9" >
					<select  id ="${field.propertyName}" name="${field.propertyName}" class="form-control my-auto-loading-data"
						data-key ="${entity}Emeus:${field.propertyName?cap_first}" data-default-value="${r"${(entity."}${field.propertyName})!'0'}">
					</select>
				</div>
			</div>
		</div>

		<#else>
		<div class="layui-row layui-col-space10 layui-form-item">
			<div class="layui-col-xs12 layui-col-sm12 layui-col-md12">
				<label class="layui-form-label">${field.comment}</label>
				<div class="layui-input-block">
					<input name="${field.propertyName}"  value="${r"${(entity."}${field.propertyName})!}"
						lay-verify="${field.propertyName}" placeholder="请输入${field.comment}" autocomplete="off" class="layui-input"  />
				</div>
			</div>
		</div>

		</#if>
	</#list>
		<div class="layui-form-item custom-edit-button">
			<button class="layui-btn" lay-filter="ok" lay-submit>确认</button>
			<button class="layui-btn layui-btn-primary"  onclick="CommonUtil.layuiCloseCurrentLayer();">取消</button>
		</div>
	</form>
</body>
<script src="/static/layuiadmin/layui/layui.js"></script>
<script src="/static/${projectName}/common/common.js"></script>
<script src="/static/${projectName}/common/dictionary.js" type="text/javascript"></script>
<script src="/static/${projectName}/js/${package.ModuleName}/${table.entityPath}/${table.entityPath}_edit.js"></script>
</html>
